package com.example.demo.controller;

import com.example.demo.utils.MLightUtils;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.ArrayList;
import java.util.List;

@RestController
@RequestMapping("/demo")
public class DemoController {

    @GetMapping("/test")
    public String test(){
        List<String> list = new ArrayList<>();
        list.add("什么");
        String str = "我不知道你到底再说什么";
        String mRedText = MLightUtils.getMRedText(list, str, null, null);
        System.out.println(mRedText);
        return mRedText;
    }
}
